package com.itheima.sc.api.pms;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.sc.pojo.pms.ProductCategory;

import java.util.List;

public interface ProductCategoryApi extends IService<ProductCategory> {
    //修改显示状态
    void updateShowStatus(Integer showStatus, List<Integer> ids);

    //修改导航栏显示状态
    void updateNavStatus(Integer navStatus, List<Integer> ids);

    //根据parentId分页查询商品分类
    List<ProductCategory> listByParentId(Integer parentId, Integer pageNum, Integer pageSize);

    //根据parentId查询totalCount
    Integer getCount(Integer parentId);

    //查询所有一级分类及子分类
    List<ProductCategory> listWithChildren();

    void removeProductCount(Long brandId);

    void updateProductCount(Long brandId);

}
